package com.breeze.blockchain.mybatis.entity;

import com.breeze.components.mybatis.base.BaseEntity;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 配置表 实体类。
 *
 * @author breeze
 * @since 2024-05-11 23:21:51
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(title = "配置表")
@Table("sys_setting")
public class SettingDo extends BaseEntity implements Serializable {

  @Serial private static final long serialVersionUID = 1L;

  /** 配置名称 */
  @Schema(title = "配置名称")
  private String name;

  /** 配置唯一标识 */
  @Schema(title = "配置唯一标识")
  private String key;

  /** 配置值 */
  @Schema(title = "配置值")
  private String value;

  /** 配置类型 */
  @Schema(title = "配置类型")
  private String type;

  /** 备注 */
  @Schema(title = "备注")
  private String remarks;

  /** 是否公开配置 */
  @Schema(title = "是否公开配置, 0-公开 1-非公开")
  private Integer isPublic;
}
